package tbs.framework.utils.wrapper

import tbs.framework.exceptions.IErrorConsumer
import tbs.framework.log.ILogger
import tbs.framework.log.annotations.AutoLogger

/**
 * 用于记录错误
 */
class LogErrorConsumer : IErrorConsumer {

    @AutoLogger
    private var logger: ILogger? = null

    override fun onError(e: Throwable?) {
        logger?.error(e, "error occurred");
    }
}